package com.github.blanexie.nexusj.torrent.domain.valobj


/**
 * 种子的类别
 */
enum class Category(
    val code: String,
    //显示的名称
    val showName: String,
) {
    Music("Music", "音乐"),
    Movie("Movie", "电影"),
    Series("Series", "连续剧"),
    MV("MV", "MV"),
    Anime("Anime", "动漫"),
    Comic("Comic", "漫画"),
    Game("Game", "游戏"),
    Novel("Novel", "小说"),
    Picture("Picture", "图片"), ;

    companion object {
        fun getByCode(code: String): Category {
            return values().last { it.code == code }
        }
    }
}